<h1>Px transaction List</h1>

<table class='sortable' id='sortable'>
  <thead>
    <tr>
      <th>Id</th>
      <th>Transactiontype</th>
      <th>Start date</th>
      <th>End date</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($transaction_list as $transaction): ?>
    <tr>
      <td><a href="<?php echo url_for('px_transaction/show?id='.$transaction['id']) ?>"><?php echo $transaction->getid() ?></a></td>
      <td><?php echo $transaction->getTransactionType() ?></td>
      <td><?php echo $transaction->getstart_date() ?></td>
      <td><?php echo $transaction->getend_date() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('px_transaction/new?px_id='.$px_id) ?>">New</a>
	<?php slot('submenu') ?>
	<ul>
		<li><?php echo link_to(image_tag('contact info.png', array('title'=>"Contact Info", 'width'=>'65px')), 'px/show?id='.$px_id) ?></li>
		<li><?php echo link_to(image_tag('personal info.png', array('title'=>"Personal Info", 'width'=>'65px')), 'px_personal/index?px_id='.$px_id) ?></li>
		<li><?php echo link_to(image_tag('passport info.png', array('title'=>"Passport Info", 'width'=>'65px')), 'passport/index?px_id='.$px_id) ?></li>
		<li><?php echo link_to(image_tag('visa.png', array('title'=>"Visa Info", 'width'=>'65px')), 'visa/index?px_id='.$px_id) ?></li>
		<li><?php echo link_to(image_tag('payment arrangements.png', array('title'=>"Payment Arrangements", 'width'=>'65px')), 'px_payment/index?px_id='.$px_id) ?></li>
		<li><?php echo link_to(image_tag('transaction history.png', array('title'=>"Transaction History", 'width'=>'65px')), 'px_transaction/index?px_id='.$px_id) ?></li>
		<li><?php echo link_to(image_tag('other note.png', array('title'=>"Other Notes", 'width'=>'65px')), 'px_note/index?px_id='.$px_id) ?></li>
	</ul>
	<?php end_slot() ?>